﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    /// <summary>
    /// 广告
    /// </summary>
    public class Advertising
    {
        public Advertising() {
           this.CreatedDate = DateTime.Now;//创建的时间
            this.UpdatedDate = DateTime.Now;//更新的时间
        }
        public Guid Id { get; set; }
        /// <summary>
        /// 图片路径
        /// </summary>
        [MaxLength(200)]//特性
        public string ImagePath { get; set; }
        /// <summary>
        /// 链接路径
        /// </summary>
        [MaxLength(200)]
        public string Url { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
    
    }
}
